/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package parismetro;

import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.scene.text.TextAlignment;

/**
 * @author Hadrien
 */

public class Quantity extends CustomNode{
    var s: Group = Group {
                content: [
                    Rectangle {
                        width: 210
                        height: 545
                        arcWidth: 20, arcHeight: 20
                        fill: Color.rgb(0, 142, 250)
                        stroke : Color.WHITE
                        strokeWidth: 5
                    }
                    Text {
                        x: 8, layoutY: 30
                        font: Font { size: 24, embolden: true, name: "Myriad Pro" }
                        content: "Nombre de tickets"
                        textAlignment: TextAlignment.CENTER
                        fill: Color.WHITE
                    },
                    ButtonQuantityS { number: 1, layoutX: 8, layoutY: 40 },
                    ButtonQuantityS { number: 2, layoutX: 108, layoutY: 40 },
                    ButtonQuantityS { number: 3, layoutX: 8, layoutY: 140 },
                    ButtonQuantityS { number: 4, layoutX: 108, layoutY: 140 },
                    ButtonQuantityS { number: 5, layoutX: 8, layoutY: 240 },
                    ButtonQuantityS { number: 6, layoutX: 108, layoutY: 240 },
                    ButtonQuantityS { number: 7, layoutX: 8, layoutY: 340 },
                    ButtonQuantityS { number: 8, layoutX: 108, layoutY: 340 },
                    ButtonQuantityS { number: 9, layoutX: 8, layoutY: 440 }
                ]
            }

    override public function create(): Node {
        return s;
    }
}
